package cn.tedu.charging.user.service.impl;

import cn.tedu.charging.common.pojo.vo.UserInfoVO;
import cn.tedu.charging.user.dao.repository.ChargingUserVehicleRepository;
import cn.tedu.charging.user.service.UserService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    private static final Logger log = LoggerFactory.getLogger(UserServiceImpl.class);
    @Autowired
    ChargingUserVehicleRepository chargingUserVehicleRepository;

    @Override
    public UserInfoVO getUserInfo(Integer userId) {
        log.debug("获取用户信息：{}",userId);
        UserInfoVO userInfoVO = new UserInfoVO();
        userInfoVO=chargingUserVehicleRepository.selectUserInfoByUserId(userId);

        return userInfoVO;
    }
}
